<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<login></login>
			<register></register>
		</div>
		<script src="../vue.js"></script>
		<script type="text/javascript">
			var login = {
				data: function() {
					return {
						msg: '我们是祖国的花朵'
					}
				},
				template: '<div><h1>{{msg}}</h1></div>'
			}
			var register = {
				data: function() {
					return {
						msg: '注册'
					}
				},
				template: '<div><h1>{{msg}}</h1></div>'
			}
			var vm = new Vue({
				el: "#app",
				data: {},
				methods: {},
				components: {
					login,
					register
				}
			})
		</script>
	</body>
</html>

